<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>MPI_Aint_diff</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<H1 id="MPI_Aint_diff">MPI_Aint_diff</H1>
Returns the difference between addr1 and addr2 
<H2>Synopsis</H2>
<PRE>
</PRE>
<PRE>
MPI_Aint MPI_Aint_diff(MPI_Aint addr1, MPI_Aint addr2)
</PRE>

<P>
<H2>Input Parameters</H2>
<DL>
<DT><B>addr1 </B> <DD> minuend address (integer)

<DT><B>addr2 </B> <DD> subtrahend address (integer)
</DL>
<P>
<H2>Notes</H2>
MPI_Aint_diff produces a new MPI_Aint value that is equivalent to the difference
between addr1 and addr2 arguments, where addr1 and addr2 represent addresses
returned by calls to MPI_GET_ADDRESS. The resulting address is valid only at the
process that generated addr1 and addr2, and addr1 and addr2 must correspond to
locations in the same object in the same process. The difference is calculated
in a manner that results the signed difference from addr1 to addr2, as if the
process that originally produced the addresses had called
<PRE>
    (char *) addr1 - (char *) addr2
</PRE>

on the addresses initially passed to MPI_GET_ADDRESS.
<P>
<H2>See Also</H2>
 MPI_Aint_add
<br>
</BODY></HTML>
